package lxh.groovy.basic;


class FirstTest
{
    static void main(args) 
	{
		def str = "hello";
		println "${str} grails";
		println "-------------";
		A a = new A(name:'lxh');
		printName(a);
		def dN = this.&printName;
		dN(a);
		println "----------------------";
		def str2 = """aaaaaaaaa\
bbbbbbbbbbbbbbbbbbbbb
		cccccccccccccccccc""";
		println "$str2"
	}
    
    def static printName(thing)
    {
    	println (thing.name);
    }

}

class B
{
	def name = "";
	public String author;
}


